package com.mas.session;

import com.mas.monitor.MonitorResourceAgent;
import com.mas.session.state.AbstractState;
import com.mas.session.state.ProcessIncomingCFP;
import com.mas.strategey.MonitorStrategy;

public class MonitorSession extends Session {

	public MonitorSession(MonitorResourceAgent monitorResourceAgent, String name) {
		super(monitorResourceAgent, name);
		setCurrentState((AbstractState) assignState(ProcessIncomingCFP.class
				.getName()));

		this.setStrategy(new MonitorStrategy(monitorResourceAgent
				.getMapResourceAllocator()));

	}

	/**
	 * @return the monitorResourceAgent
	 */
	public MonitorResourceAgent getMonitorResourceAgent() {
		return (MonitorResourceAgent) agent;
	}

}
